//
//  TuanGouTableViewCell.m
//  11212团购
//
//  Created by student on 16/3/7.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "TuanGouTableViewCell.h"

@implementation TuanGouTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setTg:(TgModel *)m
{
    self.iconImage.image = [UIImage imageNamed:m.icon];
    self.titleLabel.text = m.title;
    self.priceLabel.text = [NSString stringWithFormat:@"%@元",m.price];
    self.buyCountLabel.text = [NSString stringWithFormat:@"已有%@人购买",m.buyCount];
}



@end
